package mediatorPattern;

/**
 * 具体中介类
 */
public class HouseOwner extends Person{

    public HouseOwner(Mediator mediator, String name) {
        super(mediator, name);
    }

    public void constact(String message){
        mediator.constact(message, this);
    }

    public void getMessage(String message){
        System.out.println("房主：" + name + "获取的信息：" + message);
    }


}
